from django.conf.urls.defaults import patterns

urlpatterns = patterns('presencia.views',
    (r'^regeneraImpartir/$', 'regeneraImpartir'),
    (r'^mostraImpartir/(?P<year>\d{4})/(?P<month>\d+)/(?P<day>\d+)/$', 'mostraImpartir'),
    (r'^mostraImpartir/$', 'mostraImpartir', { 'year':None, 'month': None, 'day': None }),
    (r'^passaLlista/(?P<pk>\d+)/$', 'passaLlista'),
    (r'^afegeixAlumnesLlista/(?P<pk>\d+)/$', 'afegeixAlumnesLlista'),
    (r'^marcarComHoraSenseAlumnes/(?P<pk>\d+)/$', 'marcarComHoraSenseAlumnes'),
    (r'^treuAlumnesLlista/(?P<pk>\d+)/$', 'treuAlumnesLlista'),
    (r'^afegeixGuardia/(?P<dia>\d+)/(?P<mes>\d+)/(?P<year>\d{4})/$', 'afegeixGuardia'),
    (r'^esborraGuardia/(?P<pk>\d+)/$', 'esborraGuardia'),
    (r'^calculadoraUnitatsFormatives/$', 'calculadoraUnitatsFormatives'),
    (r'^alertaAssistencia/$', 'alertaAssistencia'),  
    (r'^faltesAssistenciaEntreDates/$', 'faltesAssistenciaEntreDates'),  

    (r'^passaLlistaGrupDataTriaGrupDia/$', 'passaLlistaGrupDataTriaGrupDia'),  
    (r'^passaLlistaGrupData/(?P<grup>\d+)/(?P<dia>\d+)/(?P<mes>\d+)/(?P<year>\d{4})/$', 'passaLlistaGrupData'),



    
)

